A new warden is hired whose favorite number is 7. Thus, instead of counting “skip, cell, skip, cell”, the new warden counts “1, 2, 3, 4, 5, 6, cell,” over and over again, until all but one prisoner has been sent back to the cells. The one remaining prisoner is released. For example, with four people, the warden counts 1, 2, 3, 4, on person number 1, 2, 3, 4. Then the warden continues counting 5, 6, cell, so person 3 is sent to the cell. Continuing, person 4 is sent to the cell next, and then person 1, so number 2 is the desired number.